Working with Fonts
Initializes a new Font object using a specified size
[C#] Font myFont = new Font("Arial", 10);
[Visual Basic] Dim myFont As New Font("Arial", 10)
Initializes a new Font object using a specified size and style
[C#] Font myFont = new Font("Arial", 10, FontStyle.Bold);
[Visual Basic] Dim myFont As New Font("Arial", 10, FontStyle.Bold)
Available Font Styles:
- FontStyle.Bold
- FontStyle.Italic
- FontStyle.Regular
- FontStyle.Strikeout
- FontStyle.Underline
For advanced information visit .NET Framework Font class
See Also